package com.zgjkhis.modules.system.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author yzq
 * @Description 门店和用户关系表
 * @Date 2021/6/23 9:38
 * @Param
 * @return
 **/
@Data
@TableName("his_store_user")
public class StoreUser implements Serializable {

    @TableId
    private Long id;

    @ApiModelProperty(value = "用户id")
   private String userId;
    @ApiModelProperty(value = "门店id")
   private String storeId;

    public void copy(StoreUser source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
